<script>
import { mapMutations, mapActions, mapGetters } from 'vuex';
// import appStore from './stores/app';
export default {
  async onLaunch() {
    console.log('App Launch', this.$store.state.config);
    // await this.$store.getConfig();
    await this.$store.dispatch("getConfig");
    // #ifdef H5
    const { status, page_status, page_url } = this.$store.state.config.webPage;
    if (status == 0) {
      if (page_status == 1) return (location.href = page_url);
      uni.reLaunch({ url: '/pages/empty/empty' });
    }
    // #endif
    await this.$store.dispatch("getUser");
  },
  onShow: function() {
    console.log('App Show');
  },
  onHide: function() {
    console.log('App Hide');
  },
  method: {
  },
  computed: {
  }
};
</script>

<style lang="scss">
@import 'tailwindcss/base';
// @import 'tailwindcss/components';
@import 'tailwindcss/utilities';

@import './uni_modules/vk-uview-ui/index.scss';
</style>
